<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>课程列表</title>
    <style>
        table {
            border-right: 1px solid black;
            border-bottom: 1px solid black
        }

        table td {
            border-left: 1px solid black;
            border-top: 1px solid black
        }
    </style>
</head>
<body>
<table>
    <tr>
        <td>课程名称</td>
        <td>价格</td>
        <td></td>
    </tr>
    <tr th:each="course : ${list}">
        <td th:text="${course.course}"></td>
        <td th:text="${course.price}"></td>
        <td><a th:href="${'/order/add/' + course.course +'/' + course.price}">订购</a></td>
    </tr>
</table>
</body>
</html>